#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include <QWidget>
#include<QTimer>
#include<QLabel>
#include<QPropertyAnimation>

#include"setscenebackground.h"
#include"setmenubar.h"
#include"setmaintitle.h"
#include"mypushbutton.h"
#include"mycoin.h"
#include"dataconfig.h"


class PlayScene : public QMainWindow
{
    Q_OBJECT
public:
    explicit PlayScene(QWidget *parent = nullptr);
    PlayScene(int index);
    //重写绘图事件
    void paintEvent(QPaintEvent *event);

    int levelindex;
    SetMenuBar *selectbar=NULL;
    SetSceneBackGround *selectbackground=NULL;
    SetMainTitle *selecttitle=NULL;
    MyPushButton *btn_back=NULL;
    int gamearray[4][4];
    MyCoin *btn_coin[4][4];//记录周围金币的状态
    bool IsWin=false;

signals:
    void choosesceneback();
};

#endif // PLAYSCENE_H
